#! /bin/sh
# Stop script used to start Akka runtime on a unix workstation

OTHELLO_HOME=CHANGE_TO_PROJ_DIR/dist
export AKKA_HOME=$OTHELLO_HOME

if [  "${AKKA_HOME:+1}" != "1" ]; then
        echo Enviroment variable AKKA_HOME is undefined
        exit 1
fi;

cd $AKKA_HOME
echo Remove akka with pid:
cat akka-runtime.pid
kill `cat akka-runtime.pid`
rm akka-runtime.pid
